@import '@/app/styles/variables';

.input {
  display: flex;
  width: 100%;
  max-height: 74px;
  align-items: flex-start;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  gap: 16px;
  color: black;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  border-radius: 16px;
  border: 1px solid var(--simple-gray-day, #e1e1e1);
  background: var(--simple-morning, #fff);
  padding: 23px 56px 23px 24px;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
}

.input.isHeight {
  height: 164px;
}

.input.isNotAccepted {
  border: 1px solid var(--simple-red-day, #ec3333);
}

.input.isFeedback {
  width: 592px;
}

.disabledProfile {
  border-radius: 12px !important;
  border: 1px solid var(--Simple-Gray-Day, #e1e1e1);
  background: var(--Simple-Gray-Morning, #f3f3f3);
}

.isDisabled {
  color: black;
}

.input.validated,
.input.validated:focus-within {
  border: 1px solid var(--simple-gray-day, #ec3333);
}

.input.accepted,
.input.accepted:focus-within {
  border: 1px solid var(--bright-green, #1bc47d) !important;
}

.input::placeholder {
  color: var(--simple-gray-evening, #ababab) !important;
}

.input:disabled {
  border: 1px solid #e1e1e1 !important;
  opacity: 1;
}

.input.isModal {
  border-radius: 12px !important;
}

.input:focus-within {
  outline: none;
}

.close,
.eye {
  position: absolute;
  height: 24px;
  top: 50%;
  right: 24px;
  padding-left: 16px;
  transform: translateY(-50%);
  cursor: pointer;
  transition: 0.2s all;

  &:hover path {
    fill: gray;
  }
}

@include media(xs) {
  .input {
    display: flex;
    width: 100%;
    height: 62px;
    padding: 18px 16px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    align-items: center;
    gap: 16px;
    border-radius: 12px !important;
    background: #fff;
    padding-right: 44px;
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
  }

  .input.isFeedback {
    width: 100%;
  }

  .close,
  .eye {
    position: absolute;
    top: 51%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    transition: 0.2s all;

    &:hover path {
      fill: gray;
    }
  }

  .disabledProfile {
    border-radius: 12px !important;
    border: 1px solid var(--Simple-Gray-Day, #e1e1e1);
    background: var(--Simple-Gray-Morning, #f3f3f3);
  }

  .input:disabled {
    border: 1px solid #b1b0b0;
    color: #000 !important;
  }

  .input:disabled::placeholder {
    color: black;
  }
}
